package com.icatw.blog.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.icatw.common.annotation.Excel;
import com.icatw.common.core.domain.BaseEntity;

/**
 * 标签管理对象 ms_tag
 * 
 * @author icatw
 * @date 2022-09-12
 */
public class Tag extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 标签id */
    @Excel(name = "标签id")
    private Long id;

    /** 标签图片 */
    @Excel(name = "标签图片")
    private String avatar;

    /** 标签名 */
    @Excel(name = "标签名")
    private String tagName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setTagName(String tagName) 
    {
        this.tagName = tagName;
    }

    public String getTagName() 
    {
        return tagName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("avatar", getAvatar())
            .append("tagName", getTagName())
            .toString();
    }
}
